#include"test.h"
void List::ListPush(int x)
{
	ListN* tem = (ListN*)malloc(sizeof(ListN));
	assert(tem);
	tem->val = x;
	tem->next = nullptr;
	if (head == nullptr)
		head = tem;
	else
	{
		ListN* cur = head;
		while (cur->next)
			cur = cur->next;
		cur->next = tem;
	}
}
